import datetime
import time
import pytz


def get_path():
    tz = pytz.timezone('Asia/Shanghai')  # 东八区
    t = datetime.datetime.fromtimestamp(int(time.time()),
                                        pytz.timezone('Asia/Shanghai'))
    dir_path = r'D:\work\flaskProject\static\video\listenertype' + get_time()
    return dir_path + '-' + '.mp4'


def get_fileName():
    file_name = 'listenertype' + get_time()
    return file_name + '-' + '.mp4'


def get_time():
    tz = pytz.timezone('Asia/Shanghai')  # 东八区
    t = datetime.datetime.fromtimestamp(int(time.time()),
                                        pytz.timezone('Asia/Shanghai'))
    return str(t.year) + '-' + str(t.month) + '-' + str(t.day) + '-' + str(t.hour) + '-' + str(t.minute)
